package ast;

import icg.ICG;
import ts.SymbolTable;
import ast.module.Module;

public class Node {
	private Module module;
	public static SymbolTable st;
	public static ICG icg = new ICG();

	public Node(Module module) {
		super();
		this.module = module;
	}

	public Module getModule() {
		return module;
	}

	public void setModule(Module module) {
		this.module = module;
	}

	public String toString() {
		return module.toString();
	}

	public static SymbolTable getSt() {
		return st;
	}

	public static void setSt(SymbolTable st) {
		Node.st = st;
	}

	public void typeCheck() {
		module.typeCheck();
	}

	public void genCode() {
		module.genCode();
	}
}
